import type { ChampionType } from '@/types/basicData'
import { req, reqImage } from './request'

// 获取图片
export const getImageByteApi = (url) => reqImage(url)

// 获取游戏流数据
export const getGameFlowApi = () => req('/lol-gameflow/v1/session')

// 获取头像列表
export const getProfileIconsApi = () => req('/lol-game-data/assets/v1/profile-icons.json')

// 获取英雄列表
export const getChampionsApi = () => req<ChampionType[]>('/lol-game-data/assets/v1/champion-summary.json')

// 获取英雄分路列表
export const getChampionsPositionsApi = () => req('/lol-perks/v1/recommended-champion-positions')

// 获取召唤师技能列表
export const getSummonerSpellsApi = () => req('/lol-game-data/assets/v1/summoner-spells.json')

// 获取符文列表(符文大类)
export const getRuneStylesApi = () => req('/lol-game-data/assets/v1/perkstyles.json')

// 获取符文列表(具体符文)
export const getRunesApi = () => req('/lol-game-data/assets/v1/perks.json')

// 获取装备列表
export const getItemsApi = () => req('/lol-game-data/assets/v1/items.json')

// 获取模式列表
export const getGameQueuesApi = () => req('/lol-game-data/assets/v1/queues.json')

// 获取地图列表
export const getMapsApi = () => req('/lol-game-data/assets/v1/map-assets/map-assets.json')
